package cn.wolfcode.p2p.base.util;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class AjaxResult {
    private boolean success = true;

    private String msg;

    public AjaxResult() {

    }

    /**
     * 默认为true
     * @param msg //返回信息
     */
    public AjaxResult(String msg) {
        this.msg = msg;
    }

    /**
     *
     * @param success 返回是否成功的状态
     * @param msg//返回信息
     */
    public AjaxResult(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }
}
